package awt.awt00;

import java.awt.*;

public class panelDemo00 {
    public static void main(String[] args){
        Frame fr = new Frame("这里演示panel");

        Panel p=new Panel();

        p.add(new TextField("这是文本框"));
        p.add(new Button("这是按钮"));

        fr.add(p);
        fr.setBounds(100,100,500,300);
        fr.setVisible(true);
    }
}
